// __webpack_public_path__ = 'http://baidu.com/'

// import _ from 'lodash';
import './style.css'
import url from './assets/images/00e8845494eef01fd357dc0ee0fe9925bd317d26.jpg';
import { num1 } from './vendors';
import content from './name.txt';
import data from './assets/data/data.xml'
import csvData from './assets/data/data.csv'
async function component() {
    var element = document.createElement('div');
    var img = document.createElement('img');
    img.src = url;

    /*<remove trigger='prod'>*/
    console.log('dev');
    /*</remove>*/

    // Lodash（目前通过一个 script 脚本引入）对于执行这一行是必需的
    const _ = await import(
        /* webpackChunkName: 'lodash_min' */
        'lodash'
    );
    // console.log(_)
    element.innerHTML = _.join(['Hello', 'Webpack', num1, content], ' ');
    element.appendChild(img);
    return element;
}
console.log(data);
console.log(csvData);
component().then(node => document.body.appendChild(node))
// console.log(component);
// document.body.appendChild();